<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
        <title>MeteoCal - Create Invitation</title>
        <link rel="stylesheet" type="text/css" href="${request.contextPath}/resources/css/main.css" />
    </h:head>
    <h:body>
        <p:layout fullPage="true">
            <p:layoutUnit position="north" size="60" resizable="false" closable="false" collapsible="false">
                <ui:include src="/includes/header.xhtml"/>
            </p:layoutUnit>
            <p:layoutUnit position="center" class="content">
                <h1>Create Invitation</h1>
                <h:form>
                    <h:panelGrid columns="2">
                        
                    <h:outputText value="event name"/>
 
                    <h:outputText value="#{eventController.selected.eventName}"/>
                                             
<!-- 
                    <h:outputLabel value="#{bundle.CreateInviteeLabel_accepted}" for="accepted" />
                    <h:inputText id="accepted" value="#{inviteeController.selected.accepted}" title="#{bundle.CreateInviteeTitle_accepted}" />


                    
                    
  
                    <h:outputText value="event ID"/>

                    <h:outputText value="#{eventController.selected.eventID}"/>
  -->
  
                    <h:outputLabel value="User Email" for="userEmail" />
                    <h:inputText id="userEmail" value="#{inviteeController.selected.userEmail}" title="userEmail" />

<!--                    <h:outputLabel value="#{bundle.CreateInviteeLabel_userEmail}" for="userEmail" />
                    <h:selectOneMenu id="userEmail" value="#{inviteeController.selected.userEmail}" title="#{bundle.CreateInviteeTitle_userEmail}" required="true" requiredMessage="#{bundle.CreateInviteeRequiredMessage_userEmail}">
                        <f:selectItems value="#{userController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>-->
                </h:panelGrid>
                <br />
                <h:commandLink action="#{inviteeController.inviteeCreate(eventController.selected.eventID)}" value="#{bundle.CreateInviteeSaveLink}" />
                <br />
                </h:form>
            </p:layoutUnit>
            <p:layoutUnit position="south" size="80" resizable="false" closable="false" collapsible="false">
                <ui:include src="/includes/footer.xhtml"/>
            </p:layoutUnit>
        </p:layout>
    </h:body>
</html>